﻿namespace Webinator.Condition
{
    using Base;

    /// <summary>
    /// Condition object.
    /// </summary>
    internal class Iterations : ConditionBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Iterations"/> class.
        /// </summary>
        public Iterations()
        {
            // Should never fail, just iterates until the NumberOfIterations value is reached
            ThrowException = false;
            TimeoutInMilliseconds = int.MaxValue;
        }
        
        /// <summary>
        /// Gets or sets the number of iterations.
        /// </summary>
        public int NumberOfIterations { get; set; }
    }
}
